import { request } from "@/util/index";
export async function bindCampus(data: Object) {
  return await request("/user/bindCampus", data);
}
export async function login(data: Object) {
  const { brand, model } = wx.getDeviceInfo();
  return await request("/user/login", data, {
    headers: {
      platform: "mp-weixin",
      phone: brand,
      osname: model,
      appid: "squirrelrecycle",
    },
    requireAuth: false,
  });
}
export async function logout() {
  return await request("/user/logout");
}
export async function updateInfo(data: Object): Promise<any> {
  return await request("/user/updateInfo", data);
}
